import DS from 'ember-data';
import BaseModel from './base-model';

var nursegroup = BaseModel.extend({
  name:DS.attr('string'),//护工组名称
  createDateTime:DS.attr('number'),//创建时间
  lastUpdateDateTime:DS.attr('number'),//更新时间
  lastUpdateUser:DS.belongsTo('user'),//更新操作者userid
  createUser:DS.belongsTo('user'),//创建者ID
  leader:DS.belongsTo('user'),//组长ID
  staffs:DS.hasMany('user',{
    inverse:'nurseGroup'
  }),//组员列表
  rooms:DS.hasMany('room',{
    inverse:'nurseGroup'
  }),//照看房间
});


export default nursegroup;
